import request from '@/utils/request'
import qs from 'qs'

export function propertyElementList(data) {
  return request({
    url: 'property/list',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function propertyElementAdd(data) {
  return request({
    url: 'property/add',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function propertyElementStatus(id) {
  return request({
    url: 'property/status',
    method: 'post',
    data: qs.stringify({ id: id })
  })
}

// 热门
export function propertyElementHot(id) {
  return request({
    url: 'property/hot',
    method: 'post',
    data: qs.stringify({ id: id })
  })
}

// 推荐
export function propertyElementRecommend(id) {
  return request({
    url: 'property/recommend',
    method: 'post',
    data: qs.stringify({ id: id })
  })
}

export function propertyElementUploadImage(data) {
  return request({
    url: 'property/uploadImage',
    method: 'post',
    data: qs.stringify(data)
  })
}
